package com.example.xyxwebbackend001.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.example.xyxwebbackend001.model.entity.ContentBlock;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface ContentBlockMapper extends BaseMapper<ContentBlock> {

    @Select("SELECT * FROM content_block WHERE art_id = #{articleId}")
    List<ContentBlock> selectByArticleId(@Param("articleId") Integer articleId);
}
